﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using My.ELibrary.Model.News;
using My.ELibrary.Business.News;

public partial class News_NewsDetail : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string strID = "";
            if ( Request.QueryString["id"] != null &&  Request.QueryString["id"].ToString() != string.Empty )
            {
                strID  = Request.QueryString["id"].ToString();
            }
            ElibNewsModel obj = ElibNewsBLL.GetInstance().SelectOne(int.Parse(strID));
            this.litTitle.Text = obj.Title;
            this.td_Detail.InnerText = obj.Content;
        }
    }
}
